#ifndef _NODE_SETTINGS_READER_WRITER_H_
#define _NODE_SETTINGS_READER_WRITER_H_

#include <QtCore/QVariant>
#include <osg/Node>
#include <osg/observer_ptr>


class NodeSettingsReader
{
public:
	NodeSettingsReader(const osg::Node& node);

	unsigned getNumberOfValues() const;
	QVariant getNextValue() const;

private:
	const osg::Node& m_Node;
	mutable unsigned m_NextIndex;
};


class NodeSettingsWriter
{
public:
	NodeSettingsWriter(osg::Node* pNode);

	void addValue(const QVariant& v);

private:
	osg::observer_ptr<osg::Node> m_rNode;
};


#endif